<?php
use yii\helpers\Html;
/* @var $this \yii\web\View */
/* @var $content string */

use frontend\assets\AppAsset;

AppAsset::register($this);
?>
<?php $this->beginPage() ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title><?= Html::encode($this->title) ?></title>
    <?php
    if( Yii::$app->controller->action->id != 'error' ){
        echo '<link rel="stylesheet" href="/css/reset.css">';
        echo '<link rel="stylesheet" href="/css/app.css">';
        echo '<link rel="stylesheet" href="/css/swiper.min.css">';
    }
    ?>
</head>
<body>

<?php $this->beginBody() ?>
<section class="app-page-section">
<?= $content ?>

<?php
if( Yii::$app->controller->action->id != 'error' ){
    echo $this->render('footer.php');
}
?>
<?php $this->endBody() ?>

</section>

<script src="/js/hotcss.js"></script>
<script src="/js/fastclick.js"></script>
<script src="/js/swiper.min.js"></script>

<script>
    // factclick
    FastClick.attach(document.body);
    
    var banner = new Swiper('.swiper-container', {
        pagination: '.swiper-pagination',
        paginationClickable: true ,
        loop: true ,
        centeredSlides: true
    });
</script>


</body>
</html>
<?php $this->endPage() ?>
